package com.ldx.java_chatroom.controller;

import com.ldx.java_chatroom.model.Friend;
import com.ldx.java_chatroom.service.FriendService;
import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class FriendController {
    @Resource
    FriendService service;
    @GetMapping("/friendList")
    public List<Friend> getFriendList(HttpServletRequest req){
        return service.getFriendList(req);
    }
}
